﻿// See https://aka.ms/new-console-template for more information
// 读取配置

using ConsoleApp1;

var appSetting = ConfigHelper.GetAppSetting("ApplicationName");
var connString = ConfigHelper.GetConnectionString("MyDB");

// 写入配置
ConfigHelper.SetAppSetting("metaDb", @"C:\Logs1");
ConfigHelper.SetAppSetting("targetDb", @"C:\Logs2");
//ConfigHelper.SetConnectionString("MyDB", "Server=...;Database=...;");

var value = ConfigHelper.GetAppSetting("metaDb");
var value2 = ConfigHelper.GetAppSetting("targetDb");
Console.WriteLine($"AppSetting: {value}");
Console.WriteLine($"AppSetting: {value2}");